package com.shopReduce.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.shopReduce.bean.ReduceProgramme;
import com.shopReduce.feign.factory.ReduceProgrammFeignFactory;

import shopBean.common.Enum.StatusAll;
import shopBean.common.bean.RestResult;

@FeignClient(value="service-shopReduce",fallbackFactory=ReduceProgrammFeignFactory.class)
public interface ReduceProgrammeFeign {
	@RequestMapping("/reduceProgrmme/insert.api")
	public RestResult insert( @RequestBody ReduceProgramme reduceProgramme);
	@RequestMapping("/reduceProgrmme/listManager.api")
	public RestResult list( @RequestBody ReduceProgramme reduceProgramme) ;
	
	@RequestMapping("/reduceProgrmme/get.api")
	public RestResult getApi(@RequestParam(value="id") String id);
	
	
	@RequestMapping("/reduceProgrmme/updateStatus.api")
	public RestResult updateStatus( @RequestParam(value="id")String id, @RequestParam(value="status")StatusAll status) ;
}
